$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 190/$f+vw;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        background: linear-gradient(180deg, rgba(56, 110, 181, 0.50) 35.29%, rgba(255, 255, 255, 0.00) 84.31%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 40/$f+vw;
        font-weight: 600;
        text-transform: uppercase;
      }

      .p2 {
        color: #386EB5;
        font-size: 48/$f+vw;
        font-weight: 700;
        margin-top: -1vw;
      }
    }

    .types {
      border-top: 3px solid rgba(58, 133, 192, 0.10);
      background: rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(5px);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      .items {
        width: 65%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .item {
          width: 20%;
          position: relative;
          cursor: pointer;

          &::before {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -2px;
            width: 0;
            transition: all 600ms;
            height: 4/$f+vw;
            background: #386EB5;
          }

          .p1 {
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22/$f+vw 0;
            font-size: 20/$f+vw;
            font-weight: 700;
            transition: all 600ms;

            svg {
              display: block;
              width: 24/$f+vw;

              path {
                transition: all 600ms;
              }
            }
          }

          &:hover {
            &::before {
              width: 100%;
            }

            .p1 {
              color: #386EB5;

              svg {
                path {
                  stroke: #386EB5;
                }
              }
            }
          }
        }

        .active {
          &::before {
            width: 100%;
          }

          .p1 {
            color: #386EB5;

            svg {
              path {
                stroke: #386EB5;
              }
            }
          }
        }
      }
    }
  }

  .main {
    margin: 63/$f+vw 235/$f+vw;

    .t {
      display: flex;
      align-items: flex-end;
      justify-content: center;

      p {
        color: #000;
        font-size: 58/$f+vw;
        font-weight: 600;
        text-transform: uppercase;
        font-family: 'PingFang';
      }

      span {
        width: 14/$f+vw;
        height: 14/$f+vw;
        background-color: #E60012;
        ;
        border-radius: 50%;
        transform: translate(1.2vw, -1vw);
      }
    }

    .list {
      margin-top: 40/$f+vw;

      .item {
        border-top: 1px solid #D9D9D9;
        padding: 32/$f+vw 0;

        .t1 {
          display: flex;
          justify-content: space-between;
          .line {
            width: 10px;
            height: 5px;
            background: #386EB5;
            border-radius: 50px;
            margin-top: 0.7vw;
          }
          p{
            color: #386EB5;
            font-size: 24/$f+vw;
            font-weight: 600;
            width: calc(99% - 10px);
          }
        }
        .des{
          color: #666;
          font-size: 20/$f+vw;
          line-height: 2;
          margin-top: 20/$f+vw;
          span{
            color: #333;
          }
        }
      }
      .item:last-child{
        border-bottom: 1px solid #D9D9D9;
      }
    }
    .more{
      display: flex;
      align-items: center;
      color: #386EB5;
      font-size: 20/$f+vw;
      width: fit-content;
      cursor: pointer;
      margin: 80/$f+vw auto;
      svg{
        width: 15/$f+vw;
        display: block;
        margin-left: 5px;
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 150px;
      }
      .text{
        left: 5%;
        top:50%;
        .p1{
          font-size: 20px;
        }
        .p2{
          font-size: 20px;
          margin-top: -10px;
        }
      }
      .types{
        position: static;
        .items{
          width: 100%;
          .item{
            .p1{
              font-size: 12px;
              padding: 10px 0;
            }
          }
        }
      }
    }
    .main{
      margin: 30px 5%;
      .t{
        p{
          font-size: 20px;
        }
        span{
          width: 5px;
          height: 5px;
          transform: translate(10px,-5px);
        }
      }
      .list{
        width: 100%;
        .item{
          padding: 15px 0;
          .t1{
            .line{
              margin-top: 5px;
            }
            p{
              font-size: 16px;
              width: calc(97% - 10px);
            }
          }
          .des{
            font-size: 16px;
          }
        }
      }
      .more{
        font-size: 16px;
        margin: 30px auto;
        svg{
          width: 15px;
          margin-left: 8px;
        }
      }
    }
  }
}